<?php
include("database.php");

$idcheck = base64_decode($_GET['id']);

$edit = mysqli_query($con,"UPDATE DonateList SET Name='$_POST[Name]', Contact='$_POST[Contact]', Location='$_POST[Location]', Details='$_POST[Details]' WHERE ID='$idcheck'") or die (mysql_error());

header("Location: ../index.php");

?>